﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Licenta1.RayTracer
{
    public abstract class Material
    {
        public abstract Color GetColorAt(double x, double y);
        public abstract double GetReflectivity();
    }

    public class SolidColorMaterial : Material
    {
        Colors color;
        double reflectivity;

        public SolidColorMaterial(double R, double G, double B)
            : this(R, G, B, 0.3)
        {
        }

        public SolidColorMaterial(double R, double G, double B, double r)
        {
            color = new Colors(R, G, B);
            reflectivity = r;
        }

        public override Color GetColorAt(double x, double y)
        {
            return color.getColor();
        }

        public override double GetReflectivity()
        {
            return reflectivity;
        }

        public Colors COLORS
        {
            get { return color; }
        }
    }
}
